import {  reqSearchList } from '@/api'

const state = {
    
    searchList:[]
}
const mutations = {
    
    VARIATE(state, searchList) {
        state.searchList = searchList
    }
}

const actions = {
  

    async getSearchList({ commit }) {
        const result = await reqSearchList()
        if (result.code === 200) {
            commit('VARIATE', result.data)
        }
    }
}
const getters = {} 


export default {
  state,
  mutations,
  actions,
  getters
}